<div class="user_menu_top" id="top_menu">
	<span url="__APP__/User/main" name="account">我的账户</span>
	<span url="__APP__/Shop" name="shop">我的商铺</span>
	<span url="__APP__/Content" name="content">内容管理</span>
	<span url="__APP__/App" name="app">应用中心</span>
	<span url="__APP__/Log" name="log">日志信息</span>
</div>

<script>
$("#top_menu span").each(function(){
	$(this).click(function(){
		var url = $(this).attr('url');		
		window.location.href = url;
	});
});	

var action = '{$action}';
$('span[name='+action+']').addClass('selected');

</script>